import { CardEditableParamsDefault, CardDataEditableParamsCommonDefault } from "@/views/card/js/data/cardDatas/card-datas-default.js";
import TooltipsData from "@/views/card/js/data/tooltipsData/tooltips-data.js";
const CARD_59 =  {
    left_element: {
      ...CardEditableParamsDefault.Obj,
      label: '左Card参数',
      param_params: {
        Idx_mid: {
          ...CardEditableParamsDefault.InputNormal,
          label: 'mid',
          placeholder: '请填入mid',
        },
        desc1: {
          ...CardEditableParamsDefault.InputNormal,
          label: '描述一',
          placeholder: '默认填充',
          disabled: true,
        },
        desc2: {
          ...CardEditableParamsDefault.InputNormal,
          label: '描述二',
          placeholder: '默认填充',
          disabled: true,
        },
        Idx_btn_type: {
          ...CardEditableParamsDefault.DropdownNormal,
          label: '按钮类型',
          placeholder: '请选择',
          valLists: [
            {
              name: '赞',
              value: 'like',
            },
            {
              name: '关注',
              value: 'follow',
            },
            {
              name: '转发',
              value: 'forward',
              disabled: true,
            },
            {
              name: '链接',
              value: 'link',
            },
            {
              name: '无',
              value: '',
            },
          ],
        },
        buttons: {
          ...CardEditableParamsDefault.Lists,
          label: '按钮',
          limit: 1,
          param_params: {
            name: {
              ...CardEditableParamsDefault.InputNormal,
              label: '按钮名称',
              placeholder: '请填入按钮名称',
            },
            pic: {
              ...CardEditableParamsDefault.ImageNormal,
              label: '按钮图标',
              res_type: 'String',  // Array : fileList, String : value
              placeholder: '尺寸严格按照1:1，小于100kb，png格式',
              limit: 1,
              size: 100,
              accept: '.png',
              tooltips: TooltipsData.image[5],
            },
            pic_default: {
              ...CardEditableParamsDefault.ImageNormal,
              label: '按钮Icon(同上)',
              res_type: 'String',  // Array : fileList, String : value
              placeholder: '尺寸严格按照设置的宽高，小于100kb，png格式',
              limit: 1,
              size: 100,
              accept: '.png',
              suffix: '_default',
              tooltips: TooltipsData.image[6],
            },
            params: {
              ...CardEditableParamsDefault.Obj,
              label: '其他参数',
              param_params: {
                uid: {
                  ...CardEditableParamsDefault.InputNormal,
                  label: '关注Uid',
                  placeholder: '默认填充',
                  disabled: true,
                },
                id: {
                  ...CardEditableParamsDefault.InputNormal,
                  label: '点赞Mid',
                  placeholder: '默认填充',
                  disabled: true,
                },
                scheme: {
                  ...CardEditableParamsDefault.InputNormal,
                  label: '跳转链接',
                  placeholder: '请填入跳转链接',
                },
              },
            },
          },

          param_effect_parent: {
            effect_parent_keys: ['left_element', 'Idx_btn_type'],
            effect_type: ['ADD_ITEM'],
            effect_parent_val: '',
            effect_clear: {  // 有则 清除
              effect_clear_default_val: [],  // default
            },
            effect_list_params: [
              {
                effect_regular: new RegExp("^follow$"),
                effect_list_params_keys: ['buttons', '0'],
              },
              {
                effect_regular: new RegExp("^link$"),
                effect_list_params_keys: ['buttons', '1'],
              },
              {
                effect_regular: new RegExp("^like$"),
                effect_list_params_keys: ['buttons', '2'],
              },
              {
                effect_regular: new RegExp("^forward$"),
                effect_list_params_keys: ['buttons', '3'],
              },
            ],
          },
        },
      },
    },
    right_element: {
      ...CardEditableParamsDefault.Obj,
      label: '右Card参数',
      param_params: {
        Idx_mid: {
          ...CardEditableParamsDefault.InputNormal,
          label: 'mid',
          placeholder: '请填入mid',
        },
        desc1: {
          ...CardEditableParamsDefault.InputNormal,
          label: '描述一',
          placeholder: '默认填充',
          disabled: true,
        },
        desc2: {
          ...CardEditableParamsDefault.InputNormal,
          label: '描述二',
          placeholder: '默认填充',
          disabled: true,
        },
        Idx_btn_type: {
          ...CardEditableParamsDefault.DropdownNormal,
          label: '按钮类型',
          placeholder: '请选择',
          valLists: [
            {
              name: '赞',
              value: 'like',
            },
            {
              name: '关注',
              value: 'follow',
            },
            {
              name: '转发',
              value: 'forward',
              disabled: true,
            },
            {
              name: '链接',
              value: 'link',
            },
            {
              name: '无',
              value: '',
            },
          ],
        },
        buttons: {
          ...CardEditableParamsDefault.Lists,
          label: '按钮',
          limit: 1,
          param_params: {
            name: {
              ...CardEditableParamsDefault.InputNormal,
              label: '按钮名称',
              placeholder: '请填入按钮名称',
            },
            pic: {
              ...CardEditableParamsDefault.ImageNormal,
              label: '按钮Icon',
              res_type: 'String',  // Array : fileList, String : value
              placeholder: '尺寸严格按照1:1，小于100kb，png格式',
              limit: 1,
              size: 100,
              accept: '.png',
              tooltips: TooltipsData.image[5],
            },
            pic_default: {
              ...CardEditableParamsDefault.ImageNormal,
              label: '按钮Icon(同上)',
              res_type: 'String',  // Array : fileList, String : value
              placeholder: '尺寸严格按照设置的宽高，小于100kb，png格式',
              limit: 1,
              size: 100,
              accept: '.png',
              suffix: '_default',
              tooltips: TooltipsData.image[6],
            },
            params: {
              ...CardEditableParamsDefault.Obj,
              label: '其他参数',
              param_params: {
                uid: {
                  ...CardEditableParamsDefault.InputNormal,
                  label: '关注Uid',
                  placeholder: '默认填充',
                  disabled: true,
                },
                id: {
                  ...CardEditableParamsDefault.InputNormal,
                  label: '点赞Mid',
                  placeholder: '默认填充',
                  disabled: true,
                },
                scheme: {
                  ...CardEditableParamsDefault.InputNormal,
                  label: '跳转链接',
                  placeholder: '请填入跳转链接',
                },
              },
            },
          },

          param_effect_parent: {
            effect_parent_keys: ['right_element', 'Idx_btn_type'],
            effect_type: ['ADD_ITEM'],
            effect_parent_val: '',
            effect_clear: {  // 有则 清除
              effect_clear_default_val: [],  // default
            },
            effect_list_params: [
              {
                effect_regular: new RegExp("^follow$"),
                effect_list_params_keys: ['buttons', '0'],
              },
              {
                effect_regular: new RegExp("^link$"),
                effect_list_params_keys: ['buttons', '1'],
              },
              {
                effect_regular: new RegExp("^like$"),
                effect_list_params_keys: ['buttons', '2'],
              },
            ],
          },
        },
      },
    },
    ...CardDataEditableParamsCommonDefault,
  };
export default CARD_59;